package com.ld.security.server.admin.modules.ge.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ld.security.common.core.anno.IdKey;
import com.ld.security.common.mybatis.anno.SqlKey;
import com.ld.security.common.mybatis.base.entity.SuperEntity;
import com.ld.security.common.mybatis.constant.SqlCondition;
import com.ld.security.server.admin.modules.ge.sql.SqlProjectPo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@TableName("ge_pack")
@ApiModel("模块")
@Data
public class GePackEntity extends SuperEntity implements SqlProjectPo
{
  @ApiModelProperty("工程编号")
  @SqlKey(SqlCondition.eq)
    private String projectId;

  @ApiModelProperty("标题")
  @SqlKey(SqlCondition.like)
    private String label;

  @ApiModelProperty("模块名")
  @SqlKey(SqlCondition.like)
    private String moduleName;

  @IdKey(value = {"projectId","moduleName"})
  @Override
  public String getId() {
    return super.getId();
  }
}
